home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1999 January - Disc 2
/
Macworld (1999-01) (Disk 2).dmg
/
Serious Demos
/
Symbolic Composer 4.2
/
Environment
/
System
/
SYMBOL
/
Utilities
/
Randomize
/
init-rnd
< prev
next >
Wrap
Text File
|
1998-10-23
|
363b
|
21 lines
init-rnd seed
Initializes the random number generator. Each seed will produce a different random sequence.
(init-rnd 0.456)
(let ((out nil))
(dotimes (i 10)
(push (pick-random '(a b c)) out))
out)
--> (c b a a b c c b c a)
(init-rnd 0.455)
(let ((out nil))
(dotimes (i 10)
(push (pick-random '(a b c)) out ))
out)
--> (a c c a b a c c c c)